import request from '@/utils/request';

export function listData(query) {
  return request({
    url: `/room/special-room${query}`,
    method: 'get',
  });
}

export function postAddData(form) {
    return request({
      url: `/room/special-room`,
      method: 'post',
      data:form
    });
  }

  export function putEditData(id,form) {
    return request({
      url: `/room/special-room/${id}`,
      method: 'put',
      data:form
    });
  }

  export function deleteData(form) {
    return request({
      url: `/room/special-room`,
      method: 'delete',
      data:form
    });
  }